import re
f1=open("c:/vmtemp/2013-12-25.log",'r')

# for x in range(5):
#
#     b= re.search(r'KBDOC-[0-9]*',f1.readline())
#
#     if b != None:
#         print b
#         print b.group()
for li in f1:
    if 'KBDOC' in li:
        b=re.search(r'KBDOC-[0-9]*',li)
        print b.group()
